package comp302.prototype.settings;

import java.awt.CardLayout;

import javax.swing.JPanel;

public class ApplicationSettings {

	public static final short SELECT_TOOL = 0, LINE_TOOL = 1, ZIGZAG_TOOL = 2,
			TEXT_TOOL = 3;
	private static short currentTool = SELECT_TOOL;
	private static JPanel optionsPanel;

	public static short getCurrentTool() {
		return currentTool;
	}

	public static void setCurrentTool(short currentTool) {
		ApplicationSettings.currentTool = currentTool;
	}

	public static void setOptionsPanel(JPanel optionsPanel) {
		ApplicationSettings.optionsPanel = optionsPanel;
	}

	public static void showOptionPanel(String optionPanel) {
		CardLayout cl = (CardLayout) (optionsPanel.getLayout());
		cl.show(optionsPanel, optionPanel);
	}
}
